<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  <title>dil.lexer.Token</title>
  <link href="./css/style.css" rel="stylesheet" type="text/css"/>
  <!-- <link href="./img/icon.png" rel="icon" type="image/png"/> -->
  <script type="text/javascript" src="./js/jquery.js"></script>
  <script type="text/javascript" src="./js/modules.js"></script>
  <script type="text/javascript" src="./js/quicksearch.js"></script>
  <script type="text/javascript" src="./js/navigation.js"></script>
  <!--<script type="text/javascript" src="./js/jquery.treeview.js"></script>-->
  <script type="text/javascript">
    var g_moduleFQN = "dil.lexer.Token";
  </script>
  
</head>
<body>
<div id="content">
  <h1><a href="./htmlsrc/dil.lexer.Token.html" class="symbol">dil.lexer.Token</a></h1>
  
<p class="sec_header">Author:</p>Aziz Köksal
<p class="sec_header">License:</p>GPL3
 <p><b>Maturity:</b> high.</p>
<dl>
<dt class="decl">struct <a class="symbol _struct" name="Token" href="./htmlsrc/dil.lexer.Token.html#L16" kind="struct" beg="16" end="326">Token</a>; <a title="Permalink to this symbol" href="#Token" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Token.html#L16">#</a></dt>
<dd class="ddef">
<div class="summary">A Token is a sequence of characters formed by the lexical analyzer.</div>
<dl>
<dt class="decl">enum <a class="symbol _enum" name="Token.Flags" href="./htmlsrc/dil.lexer.Token.html#L18" kind="enum" beg="18" end="22">Flags</a>; <a title="Permalink to this symbol" href="#Token.Flags" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Token.html#L18">#</a></dt>
<dd class="ddef">
<div class="summary">Flags set by the Lexer.</div>
<dl>
<dt class="decl"><a class="symbol _enummem" name="Token.Flags.None" href="./htmlsrc/dil.lexer.Token.html#L20" kind="enummem" beg="20" end="20">None</a> <a title="Permalink to this symbol" href="#Token.Flags.None" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Token.html#L20">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl"><a class="symbol _enummem" name="Token.Flags.Whitespace" href="./htmlsrc/dil.lexer.Token.html#L21" kind="enummem" beg="21" end="21">Whitespace</a> <a title="Permalink to this symbol" href="#Token.Flags.Whitespace" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Token.html#L21">#</a></dt>
<dd class="ddef">
<div class="summary">Tokens with this flag are ignored by the Parser.</div></dd></dl></dd>
<dt class="decl">TOK <a class="symbol _variable" name="Token.kind" href="./htmlsrc/dil.lexer.Token.html#L24" kind="variable" beg="24" end="24">kind</a>; <a title="Permalink to this symbol" href="#Token.kind" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Token.html#L24">#</a></dt>
<dd class="ddef">
<div class="summary">The token kind.</div></dd>
<dt class="decl">Flags <a class="symbol _variable" name="Token.flags" href="./htmlsrc/dil.lexer.Token.html#L25" kind="variable" beg="25" end="25">flags</a>; <a title="Permalink to this symbol" href="#Token.flags" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Token.html#L25">#</a></dt>
<dd class="ddef">
<div class="summary">The flags of the token.</div></dd>
<dt class="decl">Token* <a class="symbol _variable" name="Token.next" href="./htmlsrc/dil.lexer.Token.html#L27" kind="variable" beg="27" end="27">next</a>; <a title="Permalink to this symbol" href="#Token.next" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Token.html#L27">#</a></dt>
<dt class="decl">Token* <a class="symbol _variable" name="Token.prev" href="./htmlsrc/dil.lexer.Token.html#L27" kind="variable" beg="27" end="27">prev</a>; <a title="Permalink to this symbol" href="#Token.prev" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Token.html#L27">#</a></dt>
<dd class="ddef">
<div class="summary">Pointers to the next and previous tokens (doubly-linked list.)</div></dd>
<dt class="decl">char* <a class="symbol _variable" name="Token.ws" href="./htmlsrc/dil.lexer.Token.html#L31" kind="variable" beg="31" end="31">ws</a>; <a title="Permalink to this symbol" href="#Token.ws" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Token.html#L31">#</a></dt>
<dd class="ddef">
<div class="summary">Start of whitespace characters before token. Null if no WS.</div>
<p class="sec_header">TODO:</p>remove to save space; can be replaced by 'prev.end'.</dd>
<dt class="decl">char* <a class="symbol _variable" name="Token.start" href="./htmlsrc/dil.lexer.Token.html#L32" kind="variable" beg="32" end="32">start</a>; <a title="Permalink to this symbol" href="#Token.start" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Token.html#L32">#</a></dt>
<dd class="ddef">
<div class="summary">Points to the first character of the token.</div></dd>
<dt class="decl">char* <a class="symbol _variable" name="Token.end" href="./htmlsrc/dil.lexer.Token.html#L33" kind="variable" beg="33" end="33">end</a>; <a title="Permalink to this symbol" href="#Token.end" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Token.html#L33">#</a></dt>
<dd class="ddef">
<div class="summary">Points one character past the end of the token.</div></dd>
<dt class="decl"><a class="symbol _union" name="Token.union" href="./htmlsrc/dil.lexer.Token.html#L37" kind="union" beg="37" end="67">union</a>; <a title="Permalink to this symbol" href="#Token.union" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Token.html#L37">#</a></dt>
<dd class="ddef">
<div class="summary">Data associated with this token.</div>
<p class="sec_header">TODO:</p>move data structures out; use only pointers here to keep Token.sizeof small.
<dl>
<dt class="decl">NewlineData <a class="symbol _variable" name="Token.union.newline" href="./htmlsrc/dil.lexer.Token.html#L40" kind="variable" beg="40" end="40">newline</a>; <a title="Permalink to this symbol" href="#Token.union.newline" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Token.html#L40">#</a></dt>
<dd class="ddef">
<div class="summary">For newline tokens.</div></dd>
<dt class="decl"><a class="symbol _struct" name="Token.union.struct" href="./htmlsrc/dil.lexer.Token.html#L42" kind="struct" beg="42" end="46">struct</a>; <a title="Permalink to this symbol" href="#Token.union.struct" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Token.html#L42">#</a></dt>
<dd class="ddef">
<div class="summary">For #line tokens.</div>
<dl>
<dt class="decl">Token* <a class="symbol _variable" name="Token.union.struct.tokLineNum" href="./htmlsrc/dil.lexer.Token.html#L44" kind="variable" beg="44" end="44">tokLineNum</a>; <a title="Permalink to this symbol" href="#Token.union.struct.tokLineNum" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Token.html#L44">#</a></dt>
<dd class="ddef">
<div class="summary">#line number</div></dd>
<dt class="decl">Token* <a class="symbol _variable" name="Token.union.struct.tokLineFilespec" href="./htmlsrc/dil.lexer.Token.html#L45" kind="variable" beg="45" end="45">tokLineFilespec</a>; <a title="Permalink to this symbol" href="#Token.union.struct.tokLineFilespec" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Token.html#L45">#</a></dt>
<dd class="ddef">
<div class="summary">#line number filespec</div></dd></dl></dd>
<dt class="decl"><a class="symbol _struct" name="Token.union.struct:2" href="./htmlsrc/dil.lexer.Token.html#L48" kind="struct" beg="48" end="57">struct</a>; <a title="Permalink to this symbol" href="#Token.union.struct:2" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Token.html#L48">#</a></dt>
<dd class="ddef">
<div class="summary">The value of a string token.</div>
<dl>
<dt class="decl">string <a class="symbol _variable" name="Token.union.struct.str" href="./htmlsrc/dil.lexer.Token.html#L50" kind="variable" beg="50" end="50">str</a>; <a title="Permalink to this symbol" href="#Token.union.struct.str" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Token.html#L50">#</a></dt>
<dd class="ddef">
<div class="summary">Zero-terminated string. (The zero is included in the length.)</div></dd>
<dt class="decl">char <a class="symbol _variable" name="Token.union.struct.pf" href="./htmlsrc/dil.lexer.Token.html#L51" kind="variable" beg="51" end="51">pf</a>; <a title="Permalink to this symbol" href="#Token.union.struct.pf" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Token.html#L51">#</a></dt>
<dd class="ddef">
<div class="summary">Postfix 'c', 'w', 'd' or 0 for none.</div></dd></dl></dd>
<dt class="decl">Identifier* <a class="symbol _variable" name="Token.union.ident" href="./htmlsrc/dil.lexer.Token.html#L58" kind="variable" beg="58" end="58">ident</a>; <a title="Permalink to this symbol" href="#Token.union.ident" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Token.html#L58">#</a></dt>
<dd class="ddef">
<div class="summary">For keywords and identifiers.</div></dd>
<dt class="decl">dchar <a class="symbol _variable" name="Token.union.dchar_" href="./htmlsrc/dil.lexer.Token.html#L59" kind="variable" beg="59" end="59">dchar_</a>; <a title="Permalink to this symbol" href="#Token.union.dchar_" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Token.html#L59">#</a></dt>
<dd class="ddef">
<div class="summary">A character value.</div></dd>
<dt class="decl">long <a class="symbol _variable" name="Token.union.long_" href="./htmlsrc/dil.lexer.Token.html#L60" kind="variable" beg="60" end="60">long_</a>; <a title="Permalink to this symbol" href="#Token.union.long_" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Token.html#L60">#</a></dt>
<dd class="ddef">
<div class="summary">A long integer value.</div></dd>
<dt class="decl">ulong <a class="symbol _variable" name="Token.union.ulong_" href="./htmlsrc/dil.lexer.Token.html#L61" kind="variable" beg="61" end="61">ulong_</a>; <a title="Permalink to this symbol" href="#Token.union.ulong_" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Token.html#L61">#</a></dt>
<dd class="ddef">
<div class="summary">An unsigned long integer value.</div></dd>
<dt class="decl">int <a class="symbol _variable" name="Token.union.int_" href="./htmlsrc/dil.lexer.Token.html#L62" kind="variable" beg="62" end="62">int_</a>; <a title="Permalink to this symbol" href="#Token.union.int_" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Token.html#L62">#</a></dt>
<dd class="ddef">
<div class="summary">An integer value.</div></dd>
<dt class="decl">uint <a class="symbol _variable" name="Token.union.uint_" href="./htmlsrc/dil.lexer.Token.html#L63" kind="variable" beg="63" end="63">uint_</a>; <a title="Permalink to this symbol" href="#Token.union.uint_" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Token.html#L63">#</a></dt>
<dd class="ddef">
<div class="summary">An unsigned integer value.</div></dd>
<dt class="decl">float <a class="symbol _variable" name="Token.union.float_" href="./htmlsrc/dil.lexer.Token.html#L64" kind="variable" beg="64" end="64">float_</a>; <a title="Permalink to this symbol" href="#Token.union.float_" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Token.html#L64">#</a></dt>
<dd class="ddef">
<div class="summary">A float value.</div></dd>
<dt class="decl">double <a class="symbol _variable" name="Token.union.double_" href="./htmlsrc/dil.lexer.Token.html#L65" kind="variable" beg="65" end="65">double_</a>; <a title="Permalink to this symbol" href="#Token.union.double_" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Token.html#L65">#</a></dt>
<dd class="ddef">
<div class="summary">A double value.</div></dd>
<dt class="decl">real <a class="symbol _variable" name="Token.union.real_" href="./htmlsrc/dil.lexer.Token.html#L66" kind="variable" beg="66" end="66">real_</a>; <a title="Permalink to this symbol" href="#Token.union.real_" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Token.html#L66">#</a></dt>
<dd class="ddef">
<div class="summary">A real value.</div></dd></dl></dd>
<dt class="decl">string <a class="symbol _function" name="Token.srcText" href="./htmlsrc/dil.lexer.Token.html#L70" kind="function" beg="70" end="74">srcText</a><span class="params">()</span>; <a title="Permalink to this symbol" href="#Token.srcText" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Token.html#L70">#</a></dt>
<dd class="ddef">
<div class="summary">Returns the text of the token.</div></dd>
<dt class="decl">alias srcText <a class="symbol _alias" name="Token.text" href="./htmlsrc/dil.lexer.Token.html#L77" kind="alias" beg="77" end="77">text</a>; <a title="Permalink to this symbol" href="#Token.text" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Token.html#L77">#</a></dt>
<dd class="ddef">
<div class="summary">An alias for srcText. srcText will be removed in the future.</div></dd>
<dt class="decl">string <a class="symbol _function" name="Token.wsChars" href="./htmlsrc/dil.lexer.Token.html#L80" kind="function" beg="80" end="84">wsChars</a><span class="params">()</span>; <a title="Permalink to this symbol" href="#Token.wsChars" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Token.html#L80">#</a></dt>
<dd class="ddef">
<div class="summary">Returns the preceding whitespace of the token.</div></dd>
<dt class="decl">Token* <a class="symbol _function" name="Token.nextNWS" href="./htmlsrc/dil.lexer.Token.html#L88" kind="function" beg="88" end="101">nextNWS</a><span class="params">()</span>; <a title="Permalink to this symbol" href="#Token.nextNWS" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Token.html#L88">#</a></dt>
<dd class="ddef">
<div class="summary">Finds the next non-whitespace token.</div>
<p class="sec_header">Returns:</p>'this' token if the next token is TOK.EOF or null.</dd>
<dt class="decl">Token* <a class="symbol _function" name="Token.prevNWS" href="./htmlsrc/dil.lexer.Token.html#L105" kind="function" beg="105" end="118">prevNWS</a><span class="params">()</span>; <a title="Permalink to this symbol" href="#Token.prevNWS" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Token.html#L105">#</a></dt>
<dd class="ddef">
<div class="summary">Finds the previous non-whitespace token.</div>
<p class="sec_header">Returns:</p>'this' token if the previous token is TOK.HEAD or null.</dd>
<dt class="decl">string <a class="symbol _function" name="Token.toString" href="./htmlsrc/dil.lexer.Token.html#L121" kind="function" beg="121" end="124">toString</a><span class="params">(TOK <em>kind</em>)</span>; <span class="attrs">[<span class="stc">static</span>]</span> <a title="Permalink to this symbol" href="#Token.toString" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Token.html#L121">#</a></dt>
<dd class="ddef">
<div class="summary">Returns the string for a token kind.</div></dd>
<dt class="decl">void <a class="symbol _function" name="Token.setWhitespaceFlag" href="./htmlsrc/dil.lexer.Token.html#L127" kind="function" beg="127" end="130">setWhitespaceFlag</a><span class="params">()</span>; <a title="Permalink to this symbol" href="#Token.setWhitespaceFlag" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Token.html#L127">#</a></dt>
<dd class="ddef">
<div class="summary">Adds Flags.Whitespace to this.flags.</div></dd>
<dt class="decl">bool <a class="symbol _function" name="Token.isMultiline" href="./htmlsrc/dil.lexer.Token.html#L136" kind="function" beg="136" end="140">isMultiline</a><span class="params">()</span>; <a title="Permalink to this symbol" href="#Token.isMultiline" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Token.html#L136">#</a></dt>
<dd class="ddef">
<div class="summary">Returns true if this is a token that can have newlines in it.</div>
These can be block and nested comments and any string literal
 except for escape string literals.</dd>
<dt class="decl">bool <a class="symbol _function" name="Token.isKeyword" href="./htmlsrc/dil.lexer.Token.html#L143" kind="function" beg="143" end="146">isKeyword</a><span class="params">()</span>; <a title="Permalink to this symbol" href="#Token.isKeyword" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Token.html#L143">#</a></dt>
<dd class="ddef">
<div class="summary">Returns true if this is a keyword token.</div></dd>
<dt class="decl">bool <a class="symbol _function" name="Token.isIntegralType" href="./htmlsrc/dil.lexer.Token.html#L149" kind="function" beg="149" end="152">isIntegralType</a><span class="params">()</span>; <a title="Permalink to this symbol" href="#Token.isIntegralType" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Token.html#L149">#</a></dt>
<dd class="ddef">
<div class="summary">Returns true if this is an integral type token.</div></dd>
<dt class="decl">bool <a class="symbol _function" name="Token.isWhitespace" href="./htmlsrc/dil.lexer.Token.html#L155" kind="function" beg="155" end="158">isWhitespace</a><span class="params">()</span>; <a title="Permalink to this symbol" href="#Token.isWhitespace" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Token.html#L155">#</a></dt>
<dd class="ddef">
<div class="summary">Returns true if this is a whitespace token.</div></dd>
<dt class="decl">bool <a class="symbol _function" name="Token.isSpecialToken" href="./htmlsrc/dil.lexer.Token.html#L161" kind="function" beg="161" end="164">isSpecialToken</a><span class="params">()</span>; <a title="Permalink to this symbol" href="#Token.isSpecialToken" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Token.html#L161">#</a></dt>
<dd class="ddef">
<div class="summary">Returns true if this is a special token.</div></dd>
<dt class="decl">bool <a class="symbol _function" name="Token.isDeclDefStart" href="./htmlsrc/dil.lexer.Token.html#L176" kind="function" beg="176" end="179">isDeclDefStart</a><span class="params">()</span>; <a title="Permalink to this symbol" href="#Token.isDeclDefStart" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Token.html#L176">#</a></dt>
<dd class="ddef">
<div class="summary">Returns true if this token starts a DeclarationDefinition.</div></dd>
<dt class="decl">bool <a class="symbol _function" name="Token.isStatementStart" href="./htmlsrc/dil.lexer.Token.html#L182" kind="function" beg="182" end="185">isStatementStart</a><span class="params">()</span>; <a title="Permalink to this symbol" href="#Token.isStatementStart" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Token.html#L182">#</a></dt>
<dd class="ddef">
<div class="summary">Returns true if this token starts a Statement.</div></dd>
<dt class="decl">bool <a class="symbol _function" name="Token.isAsmStatementStart" href="./htmlsrc/dil.lexer.Token.html#L188" kind="function" beg="188" end="191">isAsmStatementStart</a><span class="params">()</span>; <a title="Permalink to this symbol" href="#Token.isAsmStatementStart" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Token.html#L188">#</a></dt>
<dd class="ddef">
<div class="summary">Returns true if this token starts an AsmStatement.</div></dd>
<dt class="decl">int <a class="symbol _function" name="Token.opEquals" href="./htmlsrc/dil.lexer.Token.html#L193" kind="function" beg="193" end="196">opEquals</a><span class="params">(TOK <em>kind2</em>)</span>; <a title="Permalink to this symbol" href="#Token.opEquals" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Token.html#L193">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">int <a class="symbol _function" name="Token.opCmp" href="./htmlsrc/dil.lexer.Token.html#L198" kind="function" beg="198" end="201">opCmp</a><span class="params">(Token* <em>rhs</em>)</span>; <a title="Permalink to this symbol" href="#Token.opCmp" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Token.html#L198">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">Location <a class="symbol _function" name="Token.getLocation" href="./htmlsrc/dil.lexer.Token.html#L204" kind="function" beg="204" end="242">getLocation</a><span class="tparams">(bool realLocation)</span><span class="params">()</span>; <a title="Permalink to this symbol" href="#Token.getLocation" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Token.html#L204">#</a></dt>
<dd class="ddef">
<div class="summary">Returns the Location of this token.</div></dd>
<dt class="decl">alias getLocation!(true) <a class="symbol _alias" name="Token.getRealLocation" href="./htmlsrc/dil.lexer.Token.html#L244" kind="alias" beg="244" end="244">getRealLocation</a>; <a title="Permalink to this symbol" href="#Token.getRealLocation" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Token.html#L244">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">alias getLocation!(false) <a class="symbol _alias" name="Token.getErrorLocation" href="./htmlsrc/dil.lexer.Token.html#L245" kind="alias" beg="245" end="245">getErrorLocation</a>; <a title="Permalink to this symbol" href="#Token.getErrorLocation" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Token.html#L245">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">uint <a class="symbol _function" name="Token.lineCount" href="./htmlsrc/dil.lexer.Token.html#L247" kind="function" beg="247" end="262">lineCount</a><span class="params">()</span>; <a title="Permalink to this symbol" href="#Token.lineCount" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Token.html#L247">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">char[] <a class="symbol _function" name="Token.textSpan" href="./htmlsrc/dil.lexer.Token.html#L265" kind="function" beg="265" end="269">textSpan</a><span class="params">(Token* <em>left</em>, Token* <em>right</em>)</span>; <span class="attrs">[<span class="stc">static</span>]</span> <a title="Permalink to this symbol" href="#Token.textSpan" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Token.html#L265">#</a></dt>
<dd class="ddef">
<div class="summary">Return the source text enclosed by the left and right token.</div></dd>
<dt class="decl"><a class="symbol _new" name="Token.new" href="./htmlsrc/dil.lexer.Token.html#L272" kind="new" beg="272" end="281">new</a><span class="params">(size_t <em>size</em>)</span>; <a title="Permalink to this symbol" href="#Token.new" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Token.html#L272">#</a></dt>
<dd class="ddef">
<div class="summary">Uses malloc() to allocate memory for a token.</div></dd>
<dt class="decl"><a class="symbol _delete" name="Token.delete" href="./htmlsrc/dil.lexer.Token.html#L284" kind="delete" beg="284" end="299">delete</a><span class="params">(void* <em>p</em>)</span>; <a title="Permalink to this symbol" href="#Token.delete" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Token.html#L284">#</a></dt>
<dd class="ddef">
<div class="summary">Deletes a token using free().</div></dd>
<dt class="decl">void <a class="symbol _function" name="Token.destructHashLineToken" href="./htmlsrc/dil.lexer.Token.html#L301" kind="function" beg="301" end="306">destructHashLineToken</a><span class="params">()</span>; <a title="Permalink to this symbol" href="#Token.destructHashLineToken" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Token.html#L301">#</a></dt>
<dd class="ddef"></dd></dl></dd>
<dt class="decl">struct <a class="symbol _struct" name="NewlineData" href="./htmlsrc/dil.lexer.Token.html#L329" kind="struct" beg="329" end="339">NewlineData</a>; <a title="Permalink to this symbol" href="#NewlineData" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Token.html#L329">#</a></dt>
<dd class="ddef">
<div class="summary">Data associated with newline tokens.</div>
<dl>
<dt class="decl">struct <a class="symbol _struct" name="NewlineData.FilePaths" href="./htmlsrc/dil.lexer.Token.html#L331" kind="struct" beg="331" end="335">FilePaths</a>; <a title="Permalink to this symbol" href="#NewlineData.FilePaths" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Token.html#L331">#</a></dt>
<dd class="ddef">
<dl>
<dt class="decl">char[] <a class="symbol _variable" name="NewlineData.FilePaths.oriPath" href="./htmlsrc/dil.lexer.Token.html#L333" kind="variable" beg="333" end="333">oriPath</a>; <a title="Permalink to this symbol" href="#NewlineData.FilePaths.oriPath" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Token.html#L333">#</a></dt>
<dd class="ddef">
<div class="summary">Original path to the source text.</div></dd>
<dt class="decl">char[] <a class="symbol _variable" name="NewlineData.FilePaths.setPath" href="./htmlsrc/dil.lexer.Token.html#L334" kind="variable" beg="334" end="334">setPath</a>; <a title="Permalink to this symbol" href="#NewlineData.FilePaths.setPath" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Token.html#L334">#</a></dt>
<dd class="ddef">
<div class="summary">Path set by #line.</div></dd></dl></dd>
<dt class="decl">FilePaths* <a class="symbol _variable" name="NewlineData.filePaths" href="./htmlsrc/dil.lexer.Token.html#L336" kind="variable" beg="336" end="336">filePaths</a>; <a title="Permalink to this symbol" href="#NewlineData.filePaths" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Token.html#L336">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">uint <a class="symbol _variable" name="NewlineData.oriLineNum" href="./htmlsrc/dil.lexer.Token.html#L337" kind="variable" beg="337" end="337">oriLineNum</a>; <a title="Permalink to this symbol" href="#NewlineData.oriLineNum" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Token.html#L337">#</a></dt>
<dd class="ddef">
<div class="summary">Actual line number in the source text.</div></dd>
<dt class="decl">uint <a class="symbol _variable" name="NewlineData.setLineNum" href="./htmlsrc/dil.lexer.Token.html#L338" kind="variable" beg="338" end="338">setLineNum</a>; <a title="Permalink to this symbol" href="#NewlineData.setLineNum" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Token.html#L338">#</a></dt>
<dd class="ddef">
<div class="summary">Delta line number set by #line.</div></dd></dl></dd>
<dt class="decl">bool <a class="symbol _function" name="isDeclDefStartToken" href="./htmlsrc/dil.lexer.Token.html#L342" kind="function" beg="342" end="360">isDeclDefStartToken</a><span class="params">(TOK <em>tok</em>)</span>; <a title="Permalink to this symbol" href="#isDeclDefStartToken" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Token.html#L342">#</a></dt>
<dd class="ddef">
<div class="summary">Returns true if this token starts a DeclarationDefinition.</div></dd>
<dt class="decl">bool <a class="symbol _function" name="isStatementStartToken" href="./htmlsrc/dil.lexer.Token.html#L363" kind="function" beg="363" end="387">isStatementStartToken</a><span class="params">(TOK <em>tok</em>)</span>; <a title="Permalink to this symbol" href="#isStatementStartToken" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Token.html#L363">#</a></dt>
<dd class="ddef">
<div class="summary">Returns true if this token starts a Statement.</div></dd>
<dt class="decl">bool <a class="symbol _function" name="isAsmStatementStartToken" href="./htmlsrc/dil.lexer.Token.html#L390" kind="function" beg="390" end="400">isAsmStatementStartToken</a><span class="params">(TOK <em>tok</em>)</span>; <a title="Permalink to this symbol" href="#isAsmStatementStartToken" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Token.html#L390">#</a></dt>
<dd class="ddef">
<div class="summary">Returns true if this token starts an AsmStatement.</div></dd></dl>
</div>
<div id="footer">
  <p>Copyright © 2007-2008, Aziz Köksal. All rights reserved.</p>
  <p>Page generated by <a href="http://code.google.com/p/dil">dil</a> on Fri Dec 26 04:12:55 2008. Rendered by <a href="http://code.google.com/p/dil/wiki/Kandil">kandil</a>.</p>
</div>
</body>
</html>